/**
 * 2020-16-20
 * 获取 项目(project)|员工(wk) 打卡天数 或者 钻孔深度
 */
'use strict';
const db = uniCloud.database();
const {validateToken} = require("validdate-token");
exports.main = async (event, context) => {
	let {token,type} = event;
	let checkTokenRes;
	try {
		checkTokenRes = await validateToken(token);
		if (checkTokenRes.code !== 0) {
			return {
				status: -1,
				msg: "重新登录",
				errCode: checkTokenRes.errCode
			}
		}
	} catch (e) {
		
	}
	
	let resData;
	if(type === 'project'){
		
	} else if(type === 'wk'){
		
	}
	return {
		status:-1,
		msg:"稍后重试"
	}
};
